package com.white.mybatis.dynamic;

/**
 * <p>
 * 附带值的字段
 * </p>
 *
 * @author huangzy
 * @since 2022/2/22
 */
public class TableFieldValue extends TableField{

    /**
     * 字段值
     */
    private Object value;

    public TableFieldValue() {
    }

    public TableFieldValue(TableField tableField , Object value) {
        this.value = value;
        super.setTableName(tableField.getTableName());
        super.setColumn(tableField.getColumn());
        super.setProperty(tableField.getProperty());
        super.setPropertyView(tableField.getPropertyView());
        super.setComment(tableField.getComment());
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
